// 保存访问接口
import Axios from 'axios'
import service from '@/core/request'
export async function getItemList () {
    let result = await Axios.get(`/itemList/getItemList`).then(d => d.data);
    return result
}

export function app() {
    // let result = await service.get(`/api/app`).then(d => d.data);

    return  service({
        url: '/api/app',
        method: 'get'
    })
}

export function aside() {
    return  service({
        url: '/api/aside',
        method: 'get'
    })
}

export function markdownh() {
    return  service({
        url: '/api/markdownh',
        method: 'get'
    })
}

export function login(data) {
    return service({
        url: '/api/login',
        method: 'post',
        data
    })
}

export function asidecom(data) {
    return service({
        url: '/api/topcom',
        method: 'get',
        data
    })
}

export function getInfo(data) {
    return service({
        url: '/api/getInfo',
        method: 'get',
        data
    })
}